package apiday04home;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class SetHome {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("one");
        list.add("two");
        list.add("three");
        list.add("one");
        System.out.println(list);
        Set<String> set = new HashSet<>();
        set.addAll(list);
        System.out.println(set);
    }
}
